<?php

// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.

/**
 * Configuration for the Remote-Learner default theme.
 *
 * This theme is the default theme for Remote-Learner Moodle 2.0 deployments, our goal is to create
 * a flexible theme that can handle 90% of all customer customization requets.
 *
 * @package   theme-rlmaster
 * @copyright 2011 Remote Learner  http://www.remote-learner.net/
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

// Our theme name
$THEME->name = 'rlmaster';

// Extend the base theme
$THEME->parents = array('base');

// Define our custom style sheets
$THEME->sheets = array(
        'base',
        'layout',
        'colors',
        'header',
        'footer',
        'block',
        'mods',
        'custommenu',
        'dock',
        'tabs',
        'components',
        'ie',
        'rein',
        'custom'
);

// Allow docking
$THEME->enable_dock = true;

// Define the layout overrides
$THEME->layouts = array(
    'base' => array(
        'file' => 'general.php',
        'regions' => array('side-pre', 'side-post'),
        'defaultregion' => 'side-post',
    ),
    'general' => array(
        'file' => 'general.php',
        'regions' => array('side-pre', 'side-post'),
        'defaultregion' => 'side-post',
    ),
    'course' => array(
        'file' => 'general.php',
        'regions' => array('side-pre', 'side-post'),
        'defaultregion' => 'side-post'
    ),
    'coursecategory' => array(
        'file' => 'general.php',
        'regions' => array('side-pre', 'side-post'),
        'defaultregion' => 'side-post',
    ),
    'incourse' => array(
        'file' => 'general.php',
        'regions' => array('side-pre', 'side-post'),
        'defaultregion' => 'side-post',
    ),
    'frontpage' => array(
        'file' => 'general.php',
        'regions' => array('side-pre', 'side-post'),
        'defaultregion' => 'side-post',
        'options' => array(
            'banner' => true,
            'langmenu' => true
        ),
    ),
    'admin' => array(
        'file' => 'general.php',
        'regions' => array('side-pre'),
        'defaultregion' => 'side-pre',
    ),
    'mydashboard' => array(
        'file' => 'general.php',
        'regions' => array('side-pre', 'side-post'),
        'defaultregion' => 'side-post',
        'options' => array(
            'langmenu' => true
        ),
    ),
    'mypublic' => array(
        'file' => 'general.php',
        'regions' => array('side-pre', 'side-post'),
        'defaultregion' => 'side-post',
    ),
    'login' => array(
        'file' => 'general.php',
        'regions' => array(),
        'options' => array(
            'langmenu' => true
        ),
    ),
    'popup' => array(
        'file' => 'general.php',
        'regions' => array(),
        'options' => array(
            'nofooter' => true,
            'noblocks' => true,
            'nonavbar' => true
        ),
    ),
    'frametop' => array(
        'file' => 'general.php',
        'regions' => array(),
        'options' => array(
            'nofooter' => true
        ),
    ),
    'maintenance' => array(
        'file' => 'general.php',
        'regions' => array(),
        'options' => array(
            'nofooter' => true,
            'nonavbar' => true
        ),
    ),
    'embedded' => array(
        'file' => 'embedded.php',
        'regions' => array(),
        'options' => array(
            'nofooter' => true,
            'nonavbar' => true
        ),
    ),
    // Should display the content and basic headers only.
    'print' => array(
        'file' => 'general.php',
        'regions' => array(),
        'options' => array(
            'nofooter' => true,
            'nonavbar' => false,
            'noblocks' => true
        ),
    ),
    'report' => array(
        'file' => 'general.php',
        'regions' => array('side-pre'),
        'defaultregion' => 'side-pre',
    )
);

$THEME->yuicssmodules = array('cssnormalize');

// This function processes the css and applies theme configurations
$THEME->csspostprocess = 'rlmaster_process_css';

$THEME->editor_sheets = array('base');

$THEME->rarrow = '&#8250;'; // Cannot use "&rsaquo;" as it is output as-is when using the s() function.
$THEME->larrow = '&#8249;'; // Cannot use "&lsaquo;" as it is output as-is when using the s() function.
